from enum import Enum, auto
class EventType(Enum):
    """事件类型枚举"""
    MARKET = "MARKET"    # 市场数据更新
    SIGNAL = "SIGNAL"    # 交易信号
    ORDER = "ORDER"      # 订单
    TRADE = "TRADE"       # 成交
    CASHFLOW = "CASHFLOW"  # 现金流事件

class OrderType(Enum):
    """订单类型"""
    MARKET = "MARKET"  # 市价单
    LIMIT = "LIMIT"    # 限价单
    STOP = "STOP"      # 止损单

class AssetType(Enum):
    """资产类型"""
    BOND = "BOND"          # 纯债
    REPO = "REPO"          # 回购
    FUTURES = "FUTURES"    # 国债期货

class CashFlowType(Enum):
    """现金流类型"""
    INTEREST = "INTEREST"  # 利息
    PRINCIPAL = "PRINCIPAL"  # 本金
    MATURITY = "MATURITY"  # 到期
class OffsetType(Enum):
    DAY = "D"
    MIN = "T"
    SECOND = "S"
    HOUR = "H"
    MONTH = "M"
    YEAR = "Y"   